use tauri::{AppHandle, Manager};
use tauri_plugin_notification::{Notification, NotificationRequest};

#[tauri::command]
pub fn show_deepin_notification(
    app: AppHandle,
    title: &str,
    content: &str
) -> Result<(), String> {
    NotificationRequest::new()
        .title(title)
        .body(content)
        .sound("Message")
        .icon("dialog-information")
        .show(&app)
        .map_err(|e| e.to_string())
}